package com.ruoyi.project.warehouse.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 借出归还记录对象 ry_lending_return_record
 * 
 * @author 萧雪
 * @date 2022-09-06
 */
public class RyLendingReturnRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 表头Id */
    private Long headerId;

    /** 物品Id */
    private Long inventoryId;

    /**物品名称*/
    @Excel(name = "物品名称")
    private String inventoryName;

    /** 仓库ID */
    private Long depotId;

    /**仓库名称*/
    @Excel(name = "仓库名称")
    private String depotName;

    /**仓库数量ID*/
    private Long currentId;

    /**仓库数量*/
    @Excel(name = "仓库数量")
    private Long currentNumber;

    /** 借出状态:0借出1归还 */
    @Excel(name = "借出状态:0借出1归还")
    private String lendStatus;

    /** 借出时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借出时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lendTime;

    /** 借出数量 */
    @Excel(name = "借出数量")
    private Long lendNum;

    /** 借出人 */
    @Excel(name = "借出人")
    private String lendPeople;

    /** 预计归还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预计归还时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expectedReturnTime;

    /** 归还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

    /** 归还数量 */
    // @Excel(name = "归还数量")
    private Long returnNum;

    /** 已归还数量 */
    @Excel(name = "归还数量")
    private Long returnedQuantity;

    /** 归还人 */
    @Excel(name = "归还人")
    private String returnPeople;

    public Long getReturnedQuantity() {
        return returnedQuantity;
    }

    public void setReturnedQuantity(Long returnedQuantity) {
        this.returnedQuantity = returnedQuantity;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public void setInventoryName(String inventoryName) {
        this.inventoryName = inventoryName;
    }

    public void setDepotName(String depotName) {
        this.depotName = depotName;
    }

    public void setCurrentId(Long currentId) {
        this.currentId = currentId;
    }

    public void setCurrentNumber(Long currentNumber) {
        this.currentNumber = currentNumber;
    }
    public Long getId() 
    {
        return id;
    }
    public void setHeaderId(Long headerId) 
    {
        this.headerId = headerId;
    }

    public Long getHeaderId() 
    {
        return headerId;
    }
    public void setInventoryId(Long inventoryId) 
    {
        this.inventoryId = inventoryId;
    }

    public Long getInventoryId() 
    {
        return inventoryId;
    }
    public void setDepotId(Long depotId) 
    {
        this.depotId = depotId;
    }

    public Long getDepotId() 
    {
        return depotId;
    }
    public void setLendStatus(String lendStatus) 
    {
        this.lendStatus = lendStatus;
    }

    public String getLendStatus() 
    {
        return lendStatus;
    }
    public void setLendTime(Date lendTime) 
    {
        this.lendTime = lendTime;
    }

    public Date getLendTime() 
    {
        return lendTime;
    }
    public void setLendNum(Long lendNum) 
    {
        this.lendNum = lendNum;
    }

    public Long getLendNum() 
    {
        return lendNum;
    }
    public void setLendPeople(String lendPeople) 
    {
        this.lendPeople = lendPeople;
    }

    public String getLendPeople() 
    {
        return lendPeople;
    }
    public void setExpectedReturnTime(Date expectedReturnTime) 
    {
        this.expectedReturnTime = expectedReturnTime;
    }

    public Date getExpectedReturnTime() 
    {
        return expectedReturnTime;
    }
    public void setReturnTime(Date returnTime) 
    {
        this.returnTime = returnTime;
    }

    public Date getReturnTime() 
    {
        return returnTime;
    }
    public void setReturnNum(Long returnNum) 
    {
        this.returnNum = returnNum;
    }

    public Long getReturnNum() 
    {
        return returnNum;
    }
    public void setReturnPeople(String returnPeople) 
    {
        this.returnPeople = returnPeople;
    }

    public String getReturnPeople() 
    {
        return returnPeople;
    }
    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getInventoryName() {
        return inventoryName;
    }

    public String getDepotName() {
        return depotName;
    }

    public Long getCurrentId() {
        return currentId;
    }

    public Long getCurrentNumber() {
        return currentNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("headerId", getHeaderId())
            .append("inventoryId", getInventoryId())
            .append("remark", getRemark())
            .append("depotId", getDepotId())
            .append("lendStatus", getLendStatus())
            .append("lendTime", getLendTime())
            .append("lendNum", getLendNum())
            .append("lendPeople", getLendPeople())
            .append("expectedReturnTime", getExpectedReturnTime())
            .append("returnTime", getReturnTime())
            .append("returnNum", getReturnNum())
            .append("returnPeople", getReturnPeople())
            .append("inventoryName", getInventoryName())
            .append("depotName", getDepotName())
            .append("currentId", getCurrentId())
            .append("currentNumber", getCurrentNumber())
            .append("returnedQuantity", getReturnedQuantity())
            .toString();
    }

}
